package com.stress.testing.common.conf;

import java.util.Properties;

public class DefaultAgentConfig extends BaseConfig implements AgentConfig {
    public DefaultAgentConfig(Properties pros) {
        super(pros);
    }

    @Override
    public String getClassFileTransformerRegistryClass() {
        return "com.stress.testing.instrumentation.ByteBuddyClassFileTransformerRegistry";
    }

    @Override
    public String getNameSpacePrefixs() {
        return "net.bytebuddy";
    }

    @Override
    public boolean enable() {
        return getBoolean(AgentConfigKey.AGENT_CONFIG_ENABLE_KEY, false);
    }

    @Override
    public String getTracePropertyPrefix() {
        return get(AgentConfigKey.AGENT_TRACE_PROPERTY_PREFIX, DEFAULT_TRACE_PROPERTY_PREFIX);
    }
}
